import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { Row, Col,Card } from 'antd';

import "./style.css"

class AdminDashboard extends React.Component{
    render(){
        return (
            <div id="dashboard">
                <div className="link-nav">
                    <Row>
                        <Col span={6}> 
                            <Card   style={{ width:200 }}>
                               <Link to="/admin/users">  用户中心 </Link> 
                            </Card>
                        </Col>
                        <Col span={6}> 
                            <Card   style={{ width:200 }}>
                               <Link to="/admin/itembank"> 题库管理 </Link>
                            </Card>
                        </Col>
                        <Col span={6}> 
                            <Card   style={{ width:200 }}>
                               <Link to="/admin/questions"> 试题管理 </Link>
                            </Card>
                        </Col>  
                        <Col span={6}> 
                            <Card   style={{ width:200 }}>
                               <Link to="/admin/exam"> 试卷管理 </Link>
                            </Card>
                        </Col>  
                    </Row>
                </div>
            </div>
        )
    }
}

export default connect()(AdminDashboard);